<?php
namespace api\modules\backend\models;
use Yii;
use yii\base\Model;


/**
 * Signup form   注册
 */
class ModelBase extends  Model
{

    public $errorStr;

    public function afterValidate(){
        $error=$this->errors;
        $errorArr=null;
        if (!empty($error)) {
           foreach ($error as $key => $value) {
               foreach ($value as $key1 => $value1) {
                   $errorArr[]=$value1;
               }
           }
            $this->errorStr=implode(' ', $errorArr);
        }
    }

}
